﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MedicWave.Visualization3d
{
    /// <summary>
    /// A single data point to plot
    /// </summary>
    public struct DataPoint
    {
        public float MZ;
        public float Intensity;
    }


    /// <summary>
    /// A single scan(spectrum) consisting of one or more data points with the same RT value.
    /// </summary>
    public class Scan
    {
        private DataPoint[] scanData;

        public DataPoint[] ScanData
        {
            get { return scanData; }
            set { scanData = value; }
        }
        private float scanRT;

        public float ScanRT
        {
            get { return scanRT; }
            set { scanRT = value; }
        }

        public Scan()
        {

        }
        public Scan(float rtValue)
        {
            scanRT = rtValue;
        }
        public Scan(float rtValue, ICollection<DataPoint> scanData)
        {
            scanRT = rtValue;
            this.scanData = new DataPoint[scanData.Count];
            scanData.CopyTo(this.scanData, 0);
        }
    }
}
